package org.crazyit.activiti_d4._1_MyConfiguration;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;

public class ConfigTest {

    public static void main(String[] args) {

        //1. 创建ProcessEngineConfiguration, 并强制转换为MyConfiguration
        MyConfiguration config = (MyConfiguration) ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("my-config.xml");

        //2. 启动Activiti
        ProcessEngine engine = config.buildProcessEngine();

        //3. 输出新增属性userName 的属性值
        System.out.println(config.getUserName());

    }

}
